//
//  NSObject+GCD.m
//  duzhoumo
//
//  Created by 度周末网络-王腾 on 15/11/13.
//  Copyright © 2015年 dzmmac. All rights reserved.
//

#import "NSObject+GCD.h"

@implementation NSObject (GCD)

-(void)afterDelay:(NSTimeInterval )timerInterval block:(void (^)())block{
    dispatch_time_t time = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(timerInterval*NSEC_PER_SEC));
    dispatch_after(time, dispatch_get_main_queue(), ^{
        block();
    });
}


@end
